﻿
/* 
 * Since 2008 - 2012
 */
package com.hh.bss.project.entity;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.project.dao.*;
import com.hh.bss.project.entity.*;
import com.hh.bss.project.service.*;
import com.hh.bss.project.vo.query.*;
import com.hh.bss.util.*;





public class ContractJobCvRecom extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "ContractJobCvRecom";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_JOB_ID = "jobId";
	public static final String ALIAS_CV_ID = "cvId";
	public static final String ALIAS_RECOM_RESULT = "recomResult";
	public static final String ALIAS_RECOM_RISK = "recomRisk";
	public static final String ALIAS_DOC_SIZE = "docSize";
	public static final String ALIAS_EXPORT_TEMPLATE = "exportTemplate";
	public static final String ALIAS_EXPORT_DOC = "exportDoc";
	public static final String ALIAS_UPLOAD_DOC = "uploadDoc";
	public static final String ALIAS_UPLOAD_DOC_EN = "uploadDocEn";
	public static final String ALIAS_IS_SMSNOTE = "isSmsnote";
	public static final String ALIAS_STATUS = "status";
	public static final String ALIAS_CREATOR = "creator";
	public static final String ALIAS_CREATE_DT = "createDt";
	public static final String ALIAS_MODIFIER = "modifier";
	public static final String ALIAS_MODIFIED_DT = "modifiedDt";
	
	//date formats
	public static final String FORMAT_CREATE_DT = DATE_FORMAT;
	public static final String FORMAT_MODIFIED_DT = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	
	private java.lang.Integer id;
	@NotNull 
	private java.lang.Integer jobId;
	@NotNull 
	private java.lang.Integer cvId;
	@Length(max=65535)
	private java.lang.String recomResult;
	@Length(max=65535)
	private java.lang.String recomRisk;
	@Length(max=255)
	private java.lang.String docSize;
	@NotNull 
	private java.lang.Integer exportTemplate;
	@Length(max=255)
	private java.lang.String exportDoc;
	@Length(max=255)
	private java.lang.String uploadDoc;
	private java.lang.String uploadDocEn;
	
	@Length(max=1)
	private java.lang.String isSmsnote;
	@NotNull @Max(32767)
	private Integer status;
	private Integer projectCvStatus;
	
	@Length(max=50)
	private java.lang.String creator;
	
	private java.util.Date createDt;
	@Length(max=50)
	private java.lang.String modifier;
	
	private java.util.Date modifiedDt;
	//columns END
	private String summary;
	
	private Integer isEmail=new Integer(0);
	/**推荐日期(向客户推荐)*/
	private Date recomDt;
	
	
	public Date getRecomDt() {
		return recomDt;
	}

	public void setRecomDt(Date recomDt) {
		this.recomDt = recomDt;
	}

	public java.lang.String getUploadDocEn() {
		return uploadDocEn;
	}

	public void setUploadDocEn(java.lang.String uploadDocEn) {
		this.uploadDocEn = uploadDocEn;
	}

	
	public Integer getProjectCvStatus() {
		return projectCvStatus;
	}

	public void setProjectCvStatus(Integer projectCvStatus) {
		this.projectCvStatus = projectCvStatus;
	}

	
	

	public Integer getIsEmail() {
		return isEmail;
	}

	public void setIsEmail(Integer isEmail) {
		this.isEmail = isEmail;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public ContractJobCvRecom(){
	}

	public ContractJobCvRecom(
		java.lang.Integer id
	){
		this.id = id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
	public void setJobId(java.lang.Integer value) {
		this.jobId = value;
	}
	
	public java.lang.Integer getJobId() {
		return this.jobId;
	}
	public void setCvId(java.lang.Integer value) {
		this.cvId = value;
	}
	
	public java.lang.Integer getCvId() {
		return this.cvId;
	}
	public void setRecomResult(java.lang.String value) {
		this.recomResult = value;
	}
	
	public java.lang.String getRecomResult() {
		return this.recomResult;
	}
	public void setRecomRisk(java.lang.String value) {
		this.recomRisk = value;
	}
	
	public java.lang.String getRecomRisk() {
		return this.recomRisk;
	}
	public void setDocSize(java.lang.String value) {
		this.docSize = value;
	}
	
	public java.lang.String getDocSize() {
		return this.docSize;
	}
	public void setExportTemplate(java.lang.Integer value) {
		this.exportTemplate = value;
	}
	
	public java.lang.Integer getExportTemplate() {
		return this.exportTemplate;
	}
	public void setExportDoc(java.lang.String value) {
		this.exportDoc = value;
	}
	
	public java.lang.String getExportDoc() {
		return this.exportDoc;
	}
	public void setUploadDoc(java.lang.String value) {
		this.uploadDoc = value;
	}
	
	public java.lang.String getUploadDoc() {
		return this.uploadDoc;
	}
	public void setIsSmsnote(java.lang.String value) {
		this.isSmsnote = value;
	}
	
	public java.lang.String getIsSmsnote() {
		return this.isSmsnote;
	}
	public void setStatus(Integer value) {
		this.status = value;
	}
	
	public Integer getStatus() {
		return this.status;
	}
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	public String getCreateDtString() {
		return DateConvertUtils.format(getCreateDt(), FORMAT_CREATE_DT);
	}
	public void setCreateDtString(String value) {
		setCreateDt(DateConvertUtils.parse(value, FORMAT_CREATE_DT,java.util.Date.class));
	}
	
	public void setCreateDt(java.util.Date value) {
		this.createDt = value;
	}
	
	public java.util.Date getCreateDt() {
		return this.createDt;
	}
	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}
	
	public java.lang.String getModifier() {
		return this.modifier;
	}
	public String getModifiedDtString() {
		return DateConvertUtils.format(getModifiedDt(), FORMAT_MODIFIED_DT);
	}
	public void setModifiedDtString(String value) {
		setModifiedDt(DateConvertUtils.parse(value, FORMAT_MODIFIED_DT,java.util.Date.class));
	}
	
	public void setModifiedDt(java.util.Date value) {
		this.modifiedDt = value;
	}
	
	public java.util.Date getModifiedDt() {
		return this.modifiedDt;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("JobId",getJobId())
			.append("CvId",getCvId())
			.append("RecomResult",getRecomResult())
			.append("RecomRisk",getRecomRisk())
			.append("DocSize",getDocSize())
			.append("ExportTemplate",getExportTemplate())
			.append("ExportDoc",getExportDoc())
			.append("UploadDoc",getUploadDoc())
			.append("IsSmsnote",getIsSmsnote())
			.append("Status",getStatus())
			.append("Creator",getCreator())
			.append("CreateDt",getCreateDt())
			.append("Modifier",getModifier())
			.append("ModifiedDt",getModifiedDt())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ContractJobCvRecom == false) return false;
		if(this == obj) return true;
		ContractJobCvRecom other = (ContractJobCvRecom)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

